<?php


class PassWordForm extends CFormModel
{

	public $oldpassword;
	public $password;
	public $password2;

	private $_identity;

	public function rules()
	{
		return array(
				array("oldpassword,password,password2","required","message"=>'{attribute}不能为空'),
				array("password2","compare",'compareAttribute'=>'password','message'=>'两次输入的新密码不一致')
			);
	}

	
	public function attributeLabels()
	{
		return array('oldpassword'=>'旧密码','password'=>'新密码','password2'=>'重复新密码');
	}

}